<template>
	<view class="notify">
		<n-icon name="form" size="32" style="color:#19BE6B; font-size: 30px;font-weight: bolder;margin-left: 15px;"></n-icon>
		<se-pagination style="font-weight: bold; font-size: 15px;">客户信息</se-pagination>
		<view class="promotion-center">
			<view class="swiper">
				<view class="swiper-box">
					
					<p>尊敬的客服经理：杨某某</p>
					<p>联系电话：636213217213</p>
					<p>烟证号：636213217213</p>
					<p>
						客服地址：某某某街

					</p>

				</view>
				
				<view class="swiper-box">
					
					<view style="margin-top: 23%; margin-left: 80%; margin-bottom: 25%;  font-size: 20px">
						<uni-icons type="phone-filled" size="20" style="color: #19BE6B;"></uni-icons>
					</view>
                      <span @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
							<uni-icons type="location-filled" style="margin-left: 80%; font-size: 20px; color: #19BE6B;"></uni-icons>
						</span>
				</view>
			</view>
			<n-icon name="form" size="32" style="color:#19BE6B; font-size: 17px;font-weight: bolder;margin-left: 15px;"></n-icon>
			<se-pagination style="font-weight: bold; font-size: 15px;">门店信息</se-pagination>
			<view class="swiper">
				<view class="swiper-box">
					<p>终端类型:黔彩终端</p>
					<p>经营状态：便利店</p>
					<p>终端星际：三星</p>
				</view>
				<view class="swiper-box">
					<p>经营规模：大型</p>
					<p>市场类型：城市</p>
					<p>是否符合高标准扫码：是</p>

				</view>
			</view>
			<!-- <list-cell icon="iconfenlei" :iconColor="themeColor.color" navigateType=""  title="工作流"></list-cell> -->
			<!-- 业务中心 -->
			<view class="category-list">
				
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
				<span>拜访签到</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
				<span>经营分析</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
				<span>终端形象</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
				<span>信息采集</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
				<span>任务表注</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/feedback?id=1`)">
				<span>信息反馈</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/about/about?id=1`)">
				<span>商品查询</span>
			</view>
			<view class="box_1" @tap.stop="navTo(`/pages/set/feedback/detail?id=1`)">
				<span>未拜访原因</span>
			</view>
			
			</view>
			

		</view>


	</view>

</template>
<script>
	
	import moment from '@/common/moment';
	import mConstDataConfig from '@/config/constData.config';
	import listCell from '@/components/oa-list-cell';
	
	import {
		mapMutations
	} from 'vuex';

	export default {
		components: {
			listCell,
		},

	filters: {
		},
		onShow() {
			this.initData();
		},
		computed: {
			bottom() {
				let bottom = 0;
				/*  #ifdef H5  */
				bottom = 90;
				/*  #endif */
				return bottom;
			}
		},



		methods: {
			// 数据初始化				            
			initData() {
				this.hasLogin = true;
				uni.setNavigationBarColor({
					frontColor: '#ffffff',
					backgroundColor: this.themeColor.color,
					animation: {
						duration: 400,
						timingFunc: 'easeIn'
					}
				})
			},

			// 统一跳转接口,拦截未登录路由
			navTo(route) {
				if (!route) return;
				if (!this.hasLogin) {
					uni.removeStorageSync('backToPage');
					this.$mRouter.push({
						route: '/pages/public/login'
					});
				} else {
					this.$mRouter.push({
						route
					});
				}
			},

		}
	};
</script>
<style lang="scss">
	page {
		background-color: $page-color-base;
	}

	.swiper {
		width: 95%;
		margin-top: 30upx;
		margin-bottom: 20upx;
		margin-left: 20upx;
		display: flex;
		border-radius: 25upx;
        box-shadow: 0upx 8upx 25upx rgba(0, 0, 0, 0.2);

		.swiper-box {
			width: 50%;
			height: 40vw;
			overflow: hidden;

			border-radius: 15upx;

			//兼容ios，微信小程序
			position: relative;
			z-index: 1;

			p {
				margin-top: 7%;
				margin-left: 4%;
				font-size: 15px;
			}

			swiper {
				width: 100%;
				height: 40vw;

				swiper-item {
					image {
						width: 100%;
						height: 40vw;
					}
				}
			}
		}
	}

	.notify {
		.works-empty {
			position: fixed;
			left: 0;
			top: 0;
			width: 100%;
			height: 100vh;
			padding-bottom: 100upx;
			display: flex;
			justify-content: center;
			flex-direction: column;
			align-items: center;
			background: #fff;

			.iconfont {
				font-size: $font-lg + 100upx;
			}

			.empty-tips {
				display: flex;
				font-size: $font-sm + 2upx;
				color: $font-color-disabled;

				.navigator {
					margin-left: 16upx;
				}
			}
		}

		.promotion-center {
			background: #fff;
			margin-bottom: 20upx;
			

			/*分类列表*/
			.category-list {
				width: 100%;
				
				border-bottom: solid 2upx #f6f6f6;
				display: flex;
				flex-wrap: wrap;
				

				.category {
					width: 25%;
					margin-top: 25upx;
					display: flex;
					justify-content: center;
					flex-wrap: wrap;
					border: 1px red solid;
					.img {
						width: 100%;
						display: flex;
						justify-content: center;
						

						.iconfont {
							font-size: $font-lg + 50upx;
							
						}
					}

					.text {
						width: 100%;
						display: flex;
						justify-content: center;
						font-size: 24upx;
						color: #3c3c3c;
					}

					.share-btn {
						height: 142upx;
						text-align: left;
						background: none;
						padding: 0;
						margin: 0;
					}

					.share-btn:after {
						border: none;
						border-radius: none;
					}
				}
			}

		}

		.header {
			width: 100%;
			padding-left: $font-lg;
			height: 100upx;
			display: flex;
			align-items: center;
			position: fixed;
			top: 0;
			z-index: 10;
			background-color: #fff;
			/*  #ifdef  APP-PLUS  */
			top: var(--status-bar-height);

			/*  #endif  */
			.title {
				font-size: 36upx;
			}
		}

		.place {
			background-color: #ffffff;
			height: 100upx;
			/*  #ifdef  APP-PLUS  */
			margin-top: var(--status-bar-height);
			/*  #endif  */
		}

		.notify-list {


			.row {
				width: calc(94%);
				height: calc(22vw + 40upx);
				margin: 0 auto $spacing-base;
				border-radius: 15upx;
				box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.1);
				display: flex;
				align-items: center;
				position: relative;
				overflow: hidden;
				z-index: 4;
				border: 0;

				.menu {
					.iconfont {
						color: #fff;
						font-size: 60upx;
					}

					position: absolute;
					width: 29%;
					height: 100%;
					right: 0;
					display: flex;
					justify-content: center;
					align-items: center;
					color: #fff;
					z-index: 2;
				}

				.carrier {
					@keyframes showMenu {
						0% {
							transform: translateX(0);
						}

						100% {
							transform: translateX(-30%);
						}
					}

					@keyframes closeMenu {
						0% {
							transform: translateX(-30%);
						}

						100% {
							transform: translateX(0);
						}
					}

					&.open {
						animation: showMenu 0.25s linear both;
					}

					&.close {
						animation: closeMenu 0.15s linear both;
					}

					background-color: #fff;
					position: absolute;
					width: 100%;
					padding: 0 0;
					height: 100%;
					z-index: 3;
					display: flex;
					align-items: center;
				}
			}

			.notify-wrapper {
				background-color: $color-white;
				width: 100%;
				padding: $spacing-base $spacing-lg $spacing-base 80upx;
				margin: $spacing-base 0 0;
				border-radius: 15upx;
				position: relative;
				

				.title {
					font-size: $font-lg;
					color: $font-color-dark;
					font-weight: 500;
					margin: 0 0 $spacing-sm;
				}

				.content {
					font-size: $font-sm;
					color: $font-color-base;
					height: 75upx;
					line-height: 36upx;
				}

				.time {
					font-size: $font-base;
					color: $font-color-light;
				}

				.type {
					position: absolute;
					top: 26upx;
					left: -10upx;
					border: none;
					font-size: $font-sm;
					opacity: 0.8;
				}

				.un-read {
					display: inline-block;
					width: 12upx;
					height: 12upx;
					border-radius: 50%;
					position: absolute;
					top: 32upx;
					right: 30upx;
				}
			}
		}

		.notify-empty {
			position: fixed;
			left: 0;
			top: 0;
			width: 100%;
			height: 100vh;
			padding-bottom: 100upx;
			display: flex;
			justify-content: center;
			flex-direction: column;
			align-items: center;
			background: #fff;
			

			.iconfont {
				font-size: $font-lg + 100upx;
			}

			.empty-tips {
				display: flex;
				font-size: $font-sm + 2upx;
				color: $font-color-disabled;

				.navigator {
					margin-left: 16upx;
				}
				
			}
		}

	}
	.box_1{
		width: 30%;
		height: 50px;
		margin-top: 10px;
		margin-left:2%;
		box-shadow: 0upx 8upx 25upx rgba(0, 0, 0, 0.2);
		border-radius: 25upx;
		span{
			font-size: 15px;
			line-height: 50px;
			margin-left: 30px;
		}
	}
</style>
